<%-- 
    Document   : verTodas
    Created on : 24/02/2012, 12:23:12 AM
    Author     : Gimbet
--%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
    <logic:present name="matrices" >
        <h1>Lista de Matrices </h1>
        <div id="paginador"></div><p>Muestra hasta 4 resultados </p>
        <div id="tableContainer" class="tableContainer">
            <table id="tablaDatos" border="0" cellpadding="0" cellspacing="0" width="70%" class="scrollTable">
                <thead class="fixedHeader" id="fixedHeader">
                    <tr>
                        <th> Nombre</th>
                        <th> Completar Informacion </th>
                    </tr>
                </thead>
                <tbody class="scrollContent">
                    <logic:iterate name="matrices" id="matriz">
                        <tr>
                            <td>    
                                <bean:write name="matriz" property="nombre"/>
                            </td>         
                            <td>  
                                <html:form action="/agregarInformacion?method=populate" onsubmit="return this">
                                    <html:hidden name="matriz" property="idMatriz"/>
                                    <div class="buttons">
                                        <button type="submit" class="regular">
                                            <img src="interfaz/images/modificar.png" alt=""/>
                                             Agregar informacion Programacion
                                        </button>
                                    </div>
                               </html:form>
                        
                            </td>
                            <td>  
                                <html:form action="/agregarInformacion?method=populateAjuste" onsubmit="return this">
                                    <html:hidden name="matriz" property="idMatriz"/>
                                    <div class="buttons">
                                        <button type="submit" class="regular">
                                            <img src="interfaz/images/modificar.png" alt=""/>
                                             Agregar informacion Ajustes
                                        </button>
                                    </div>
                               </html:form>
                        
                            </td>
                             <td>  
                                <html:form action="/agregarInformacion?method=populateEjecucion" onsubmit="return this">
                                    <html:hidden name="matriz" property="idMatriz"/>
                                    <div class="buttons">
                                        <button type="submit" class="regular">
                                            <img src="interfaz/images/modificar.png" alt=""/>
                                             Agregar informacion Ejecucion
                                        </button>
                                    </div>
                               </html:form>
                        
                            </td>                           
                        </tr>
                    </logic:iterate>
                </tbody>
            </table>
        </div>
    </logic:present>
    <script type="text/javascript">

        var p = new Paginador(
        document.getElementById('paginador'),
        document.getElementById('tablaDatos'),
        4
    );

        p.Mostrar();
    </script>
</html>
